#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>

int main()
{
    char arr1[] = "abcdefghi";
    char arr2[] = "#########";
    int left = 0;
    int right =strlen(arr2)-1;
    while(left<=right)
    {
        arr2[left] = arr1[left];
        arr2[right] = arr1[right];
        left++;
        right--;
        Sleep(1000);
        system("cls");
        printf("%s\n",arr2);

    }
    return 0;
}